//
//  main.m
//  homework第二部分
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Phone.h"
#import "Computer.h"
#import "Box.h"
#import "Clothes.h"
#import "Shoes.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
#if 0
        //第六个类 手机类
        Phone *pho1 = [[Phone alloc] init];
        [pho1 setName:@"iPHONE"];
        [pho1 setBrand:@"苹果公司"];
        [pho1 setPrice:6000];
        [pho1 setType:@"智能机"];
        [pho1 myPrint];
        
        Phone *pho2 = [[Phone alloc] initWithName:@"摩托罗拉300" withBrand:@"摩托罗拉公司" withPrice:500 withType:@"非智能机"];
        [pho2 myPrint];
#endif
        
        
#if 0
        //第七个类 电脑类
        Computer *cpu1 = [[Computer alloc]  init];
        [cpu1 setName:@"iMac"];
        [cpu1 setColor:@"银白色"];
        [cpu1 setBrand:@"苹果公司"];
        [cpu1 setPrice:1000];
        [cpu1 myPrint];
        
        Computer *cpu2 = [[Computer alloc] initWithName:@"华硕K53s" withColor:@"黑色" withBrand:@"华硕公司" withPrice:500];
        [cpu2 myPrint];
        
#endif

#if 0
        //第八个类 箱子类
        Box *box1 = [[Box alloc] init];
        [box1 setName:@"LV z4"];
        [box1 setType:@"手提包"];
        [box1 setWeight:5];
        [box1 setPrice:12000];
        [box1 myPrint];
        
        Box *box2 = [[Box alloc] initWithName:@"香奈儿" withType:@"手提包" withWeight:4 withPrice:20000];
        [box2 myPrint];
        
#endif
        
#if 0
        //第九个类 衣服类
        Clothes *clo1 = [[Clothes alloc] init];
        [clo1 setName:@"李宁T恤"];
        [clo1 setType:@"T恤"];
        [clo1 setBrand:@"李宁"];
        [clo1 setPrice:200];
        [clo1 myPrint];
        
        Clothes *clo2 = [[Clothes alloc] initWithName:@"耐克T恤" withType:@"T恤" withBrand:@"耐克" withPrice:300];
        [clo2 myPrint];
        
#endif
        
#if 1 
        //第十个类 鞋类
        Shoes *sho1 = [[Shoes alloc] init];
        [sho1 setName:@"李宁球鞋"];
        [sho1 setBrand:@"李宁"];
        [sho1 setSize:42];
        [sho1 setPrice:230];
        [sho1 myPrint];
        
        Shoes *sho2 = [[Shoes alloc] initWithName:@"耐克旅游鞋" withBrand:@"耐克" withSize:43 withPrice:390];
        [sho2 myPrint];
        
        
#endif
    }
    return 0;
}
